using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace eBirdAttend
{
    public partial class SearchForm : Form
    {
        public string strEmpCode = "";

        public SearchForm()
        {
            InitializeComponent();
        }

        private void SearchForm_Load(object sender, EventArgs e)
        {
            employDetailsTableAdapter1.Fill(employeeDataset.EmployDetails);
        }

        private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            MessageBox.Show(dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString());
            strEmpCode = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();
            this.Dispose();
        }
    }
}